//校验登录
const token = localStorage.getItem('token');
if (token===null) {
location.href="./login.html"
}